package com.chagee.store.operation.server.facade;

import com.chagee.store.operation.api.request.StorePersonnelRequest;
import com.chagee.store.operation.api.response.StorePersonnelResponse;
import com.chagee.store.operation.server.feign.vo.User;
import com.chagee.store.operation.server.feign.vo.UserPostVO;
import com.chagee.store.operation.server.model.param.QueryPersonnelRequest;
import com.chagee.store.operation.server.service.StorePersonnelBizService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author : hk
 * @Date : 2025/3/7
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class StorePersonnelFacade {

	@Resource
	private StorePersonnelBizService storePersonnelBizService;

	/**
	 * 门店本月单据状态详情
	 * @param param
	 * @return
	 */
	public List<StorePersonnelResponse> userList(StorePersonnelRequest param) {
		List<StorePersonnelResponse> result = storePersonnelBizService.userList(param);
		return result;
	}

	/**
	 * 根据手机号查询用户
	 * @param request
	 * @return
	 */
	public User userInfoByPhone(QueryPersonnelRequest request) {
		User result = storePersonnelBizService.userInfoByPhone(request.getPhone(), request.getNameAndPhone());
		return result;
	}

}
